package com.vimi8.ebb.auth.api;


import com.vimi8.ebb.auth.configuration.HttpResponseEntity;
import com.vimi8.ebb.auth.model.Token;
import io.swagger.annotations.*;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;

@javax.annotation.Generated(value = "class io.swagger.codegen.languages.SpringCodegen", date = "2016-11-16T08:40:14.731Z")

@RestController
@Api(value = "refresh", description = "the refresh API")
public interface RefreshApi {

    @ApiOperation(value = "刷新token接口", notes = "通过refresh_token换取access_token.", response = Token.class, tags={ "注册登录", })
    @ApiResponses(value = { 
        @ApiResponse(code = 200, message = "成功,返回token对象", response = Token.class),
        @ApiResponse(code = 200, message = "失败,返回消息", response = Token.class) })
    @RequestMapping(value = "/refresh/",
        produces = { "application/json" }, 
        method = RequestMethod.POST)
    HttpResponseEntity<Token> refreshPost(@ApiParam(value = "refresh_token值", required = true) @RequestParam(value = "refresh_token", required = true) String refresh_token, HttpServletRequest request);

}
